package com.ruoyi.wechat.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营地交流对象 c_commonication
 * 
 * @author 李硕
 * @date 2024-12-25
 */
public class Commonication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 营地交流id（主键） */
    private String commonicationId;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 用户信息 */
    @Excel(name = "用户")
    private CampUser campUser;

    /** 文字内容 */
    @Excel(name = "文字内容")
    private String content;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 位置名称 */
    @Excel(name = "位置名称")
    private String positionName;

    private List<Image> imageList;

    public CampUser getCampUser() {
        return campUser;
    }

    public void setCampUser(CampUser campUser) {
        this.campUser = campUser;
    }

    public List<Image> getImageList() {
        return imageList;
    }

    public void setImageList(List<Image> imageList) {
        this.imageList = imageList;
    }

    public void setCommonicationId(String commonicationId)
    {
        this.commonicationId = commonicationId;
    }

    public String getCommonicationId() 
    {
        return commonicationId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setPositionName(String positionName) 
    {
        this.positionName = positionName;
    }

    public String getPositionName() 
    {
        return positionName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commonicationId", getCommonicationId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("time", getTime())
            .append("status", getStatus())
            .append("positionName", getPositionName())
            .toString();
    }
}
